<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增管理员</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="form-item">
            <label class="item-label">企业名称<span class="check-tips">（请填写企业全名）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$data.name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">管理员名称<span class="check-tips">（请添加管理员名称）</span></label>
            <div class="controls">
                <select name="admin_id" style="min-width: 80px">
                    <foreach name = "admin" item="single" >
                        <option <if condition="$single.uid == $data['admin_id']">selected='selected'</if>  value="{$single.uid}">{$single.nickname}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <!--<div class="form-item">-->
            <!--<label class="item-label">管理员电话</label>-->
            <!--<div class="controls">-->
                <!--<input type="tel" class="text input-large" name="admin_tel" value="{$data.admin_tel;}">-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-item">
            <label class="item-label">企业地址<span class="check-tips">（请填写详细地址）</span></label>
            <!--<div class="controls">-->
            <!--&lt;!&ndash;<input type="text" class="text input-large" name="email" value="">&ndash;&gt;-->
            <!--<select name="address">-->
            <!--<option value="1">天津</option>-->
            <!--</select>-->
            <!--<select name="address">-->
            <!--<option value="1">南开</option>-->
            <!--</select>-->
            <!--<select name="address">-->
            <!--<option value="1">天拖</option>-->
            <!--</select>-->
            <!--</div>-->
            <div class="control">
                <textarea name="address" id="" cols="60" rows="6">{$data.address}</textarea>
            </div>
        </div>
        <!-- <div class="form-item">
            <label class="item-label">工号<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="card" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">所属单位<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="store" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">姓名<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">地址<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="address" value="">
            </div>
        </div> -->
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Enterprise/index')}');
    </script>
</block>
